<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>班次管理</title>
    <meta name="decorator" content="nblank"/>
</head>
<body>
<div class="content container">
    <h2 class="page-title">交接班流水<small> 交接班流水</small></h2>
    <section class="widget widget-tabs widget-table-overflow ">
        <header>
            <ul class="nav nav-tabs">
                <li class="active"><a href="javascript:;">交接班流水</a></li>
            </ul>
        </header>
        <div class="body tab-content">
            <form:form id="searchForm" modelAttribute="handoverInfo" action="${ctx}/biz/handoverInfo/" method="post" class="breadcrumb  form-inline">
            <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
            <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
				<%--<div class="row">--%>
					<%--<div class="navbar-form navbar-left col-md-3">--%>
						<%--<div class="form-group">--%>
						<%--<label>日期:&nbsp;&nbsp;</label>--%>
						<%--</div>--%>
						<%--<div class="form-group">--%>
                            <%--<form:input path="description" htmlEscape="false" maxlength="50" class="form-control input-transparent"/>--%>
					    <%--</div>--%>
                    <%--</div>--%>
					<%--<div class="col-md-1"></div>--%>
					<%--<div class="navbar-form navbar-left col-md-3">--%>
						<%--<div class="form-group">--%>
						<%--<label >描述:&nbsp;&nbsp;</label>--%>
						<%--</div>--%>
						<%--<div class="form-group">--%>
						<%--<form:input path="description" htmlEscape="false" maxlength="50" class="form-control input-transparent"/>--%>
						<%--</div>--%>
					<%--</div>--%>
					<%--<div class="col-md-1"></div>--%>
					<%--<div class="navbar-form navbar-left col-md-1">--%>
				        <%--<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>--%>
					<%--</div>--%>
               	<%--</div>--%>
            </form:form>
            <sys:message content="${message}"/>
            <table id="contentTable" class="table table-striped table-condensed">
                <thead><tr><th>日期</th> <th>交班人</th><th>接班人</th><th>异常交班</th><shiro:hasPermission name="sys:dict:edit"><th>操作</th></shiro:hasPermission></tr></thead>
                <tbody>
                <c:forEach items="${page.list}" var="handoverInfo">
                    <tr>
                        <td> <fmt:formatDate value="${handoverInfo.date}" type="both"/> </td>
                        <td>${handoverInfo.provider.getName()}</td>
                        <td>${handoverInfo.successor.getName()}</td>
                        <td>
                            <c:if test="${handoverInfo.flag==1}">
                                ${handoverInfo.exception.exceptionReason}
                            </c:if>
                        </td>
                        <shiro:hasPermission name="sys:handover:view">
                            <td>
                                <a href="${ctx}/biz/handoverInfo/form?id=${handoverInfo.id}">查看</a>
                            </td>
                        </shiro:hasPermission>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
            <div class="row">${page}</div>
        </div>
    </section>
</div>
<script type="text/javascript">
    function page(n,s){
        $("#pageNo").val(n);
        $("#pageSize").val(s);
        $("#searchForm").submit();
        return false;
    }
</script>
</body>
</html>